let user = wx.getStorageSync('user')

export const loginUserId = () => {
  if (user)
    return user.id
  else
    return 1
}